package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.ExchConnRequest;
/**
 * 
 * ExchConnRequestRowWapper
 * @日期：2014-5-19 下午2:01:40
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
public class ExchConnRequestRowWapper  implements RowMapper<ExchConnRequest>{

	@Override
	public ExchConnRequest mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		ExchConnRequest vo = new ExchConnRequest();
		vo.setId(rs.getString("id"));
		vo.setFromNodeId(rs.getString("from_node_id"));
		vo.setToUrl(rs.getString("to_url"));
		vo.setRequestContent(rs.getString("request_content"));
		vo.setRequestType(rs.getString("request_type"));
		vo.setStatus(rs.getString("status"));
		vo.setResponse(rs.getString("response"));
		vo.setIsLocal(rs.getString("islocal"));
		vo.setMtime(rs.getDate("mtime"));
		return vo;
	}

}
